#include "testwindow.h"

TestWindow::TestWindow()
{
    atlas = new TextureAltas();
    setCentralWidget(atlas);
    SetActions();
    SetMenu();
}


void TestWindow::SetActions()
{
    QAction * action = new QAction( "Quit", this);
    connect(action, SIGNAL(triggered()), this, SLOT(close()));

    m_Actions.push_back(action);

}

void TestWindow::SetMenu()
{
    QMenuBar * menu = menuBar();

    for(int i=0; i< m_Actions.size(); i++)
    {
        menu->addAction(m_Actions[i]);
    }
}

